package com.example.dto.business;

import com.example.pojo.UserDynamic;
import com.example.vo.user.Publisher;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @author LeXin Huang
 * @date 2021年04月14日 8:08
 */
@Data
@ToString

public class UserDynamicBusinessDTO {
    private Integer dynamicId;

    private String topic;

    private String content;

    private Date publishTime;

    private Boolean isMineDynamic;

    private List<String> picturesUrl;

    private Publisher publisher;

    public UserDynamicBusinessDTO(UserDynamic userDynamic) {
        this.dynamicId = userDynamic.getId();
        this.topic = userDynamic.getTopic();
        this.content = userDynamic.getContent();
        this.publishTime = userDynamic.getPublishTime();
        this.picturesUrl = userDynamic.getPicturesUrl();
        this.publisher = userDynamic.getPublisher();
    }
}
